package Test;

public class Police {
    public String name;
    public Police(){}
    public Police(String name){
        this.name = name;
    }
    public void punish(Driver driver,Accident accident,Car car){
        System.out.println(this.name+ "警官" + "因为"+ driver.name + accident.name + car.name + "给他开罚单" );
    }
}
